
import java.io

        .*;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import java.util.Scanner;
public class Test {
    public static void main(String[] args) {
        Map<String,Integer>map=new HashMap<>();

        String stuNo="";

        String path="E:\\data\\names.txt";
        BufferedReader reader=null;
        try {
            reader=new BufferedReader(new FileReader(path));
            while ((stuNo=reader.readLine())!=null){
                map.put(stuNo,0);
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                reader.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        File file=new File("E:\\data\\16信本2班Java作业一");
        File[] files=file.listFiles();
        for (File f:files){
            String fileName=f.getName();
            //保存提取到学号
            String no="";
            Matcher matcher= Pattern.compile("信本2班(\\d+)").matcher(fileName);
            while (matcher.find()){
                no=matcher.group(1);
            }
            map.put(no,1);
        }
        for (Map.Entry<String,Integer>entry:map.entrySet()){
            if (entry.getValue()==0){
                System.out.println(entry.getKey());
            }
        }
for (Map.Entry<String,Integer>entry:map.entrySet()){
        if(entry.getValue()==0){
        System.out.println(entry.getKey());
        }
        }
        Scanner stdin = new Scanner(System.in);
        String road = ("E:\\data\\scores.txt");
        BufferedReader learn = null;
        String sno = stdin.nextLine();
        System.out.println("你的学号是："+sno);
        double score = stdin.nextDouble();
        System.out.println("请输入你的成绩");
        System.out.println("你的成绩是："+score);
    }
}


